package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(int id);

    public void add(Role role);

    public void setRoleAndPermission(Map<String, Integer> map);

    public Page<Role> findByCondition(String queryString);

    public Role findById(Integer id);

    public List<Integer> findPermissionIdsByRoleId(Integer id);

    public void edit(Role role);

    public void deleteAssociation(Integer id);

    public void deleteById(Integer id);

    public    List<Role> findAll();
}
